package org.bennedum.SimpleMCClient.protocol;

/**
 *
 * @author frdfsnlght <frdfsnlght@gmail.com>
 */
public final class Packet68 extends Packet {
    
    public Packet68(byte[] input) {
        short slots = getShort(input, 2);
        int len = 0;
        for (int slot = 0; slot < slots; slot++) {
            short id = getShort(input, 4 + len);
            len += 2;
            if (id != -1)
                len += 2;
        }
        setBuffer(input, 0, 4 + len);
    }
    
}
